import {Tools} from 'weaver-mobile';
import { getClientTypeInfo } from '../../util/CommonUtil';

export const resetParams = (params = {}) =>{
	params['clientType'] = getClientTypeInfo();
	return params;
}

export const odocAppendDatas = params => {
	resetParams(params);
	return Tools.callApi(
        {
            url: '/api/odoc/signInputAppend/odocAppendDatas',
            method: 'POST',
            params
        }
    )
}

export const saveSignSetting = params => {
	resetParams(params);
	return Tools.callApi(
        {
            url: '/api/odoc/signInputAppend/saveSignSetting',
            method: 'POST',
            params
        }
    );
}

export const getSqlWhere = params => {
    resetParams(params);
	return Tools.callApi(
        {
            url: '/api/odoc/signInputAppend/getSqlWhere',
            method: 'POST',
            params
        }
    );
}

